package com.tongji.quickCRUDQ.html;

import com.tongji.quickCRUDQ.define.Column;

public class TextArea implements Control {

	public String formatDetailHtml(String value, Column column) {
		StringBuffer html=new StringBuffer();
		html.append("<textarea id=change name=\"").append(column.getColumnname())
		    .append("\"  maxlength=\"").append(column.getLength()).append("\" title=\"").append(column.getAbbr())
			.append("\" class='INPUT_text' bnull=\"").append(column.getBnull())
			.append("\" ondblclick=doDblClick(this,'"+column.getAbbr()+"') onclick=doClick(this)")
			.append("  dataType=\"").append(column.getDatatype()).append("\"");
		if(column.getBupdate().equals("N")) html.append(" disabled ");
		html.append(">").append(value).append("</textarea>");
		return html.toString();
	} 

	public String formatTableHtml(String value, Column column) {
		return value;
	}

	public void setDynamic(Object dynamic) {
		// TODO Auto-generated method stub

	}

	public void setStyleClass(String value) {
		// TODO Auto-generated method stub

	}

}
